import QtQuick 1.1
import com.nokia.meego 1.0
import "getjson.js" as GetJson
import "storage.js" as Store
import com.nokia.extras 1.1
PageStackWindow {
    id: appWindow
    property string qbtoken:Store.getSetting("qbtoken")==="Unknown"?"":Store.getSetting("qbtoken")
    property color colorDark: "#544433"
    property color colorMid: "#806343"
    property color colorMidLight: "#BCA489"
    property int lockposition: Store.getSetting("lockposition")==="Unknown"?PageOrientation.Automatic:Store.getSetting("lockposition")
    property string contntcolor : Store.getContentColor() ;
    property string labelcolor:Store.getlabelcolor();
    property real fontsize: Store.getSetting("fontsize")==="Unknown"?18:Store.getSetting("fontsize")
    property bool showimage:Store.getshowimage();
    property bool loading: loadStack > 0
    //color: "red"
   //
    showStatusBar: Store.getSetting("fontsize")==="Unknown"?true:Store.getSetting("fontsize")
       property int loadStack: 0
       signal loadStart
       signal loadStop
       onLoadStart: loadStack ++
       onLoadStop: loadStack --


    initialPage: initpage

    platformStyle: Store.getSetting("platformStyle")==="defaultStyle"?
                       defaultStyle:(Store.getSetting("platformStyle")==="customStyle"?
                                              customStyle: defqiubai)



        PageStackWindowStyle {
               id:defqiubai
               background: "images/main_background.png"

               backgroundFillMode: Image.Tile
           }
    PageStackWindowStyle { id: defaultStyle

    }
    PageStackWindowStyle { id: customStyle}
    MainPage {
        id: mainPage
    }
    About{

        id :about
    }
    InitPage{
        id:initpage
    }

    InfoBanner{
        id: infoBanner
        objectName: "infoBanner1Object"

        anchors.bottom: parent.bottom
        anchors.bottomMargin: 50
        anchors.topMargin: 10
    }
Component.onCompleted:{
   //
    Store.initialize();
}
}
